﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/Department/DepHead.Master" AutoEventWireup="true" CodeBehind="RequisitionList_haead.aspx.cs" Inherits="ADSMS.Presentation.Department.RequisitionList_haead" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="container">
    <div class="jumbotron">
    <div class="row">
        <div class="col-lg-12">
            <div class="well">
                <div class="bs-example form-horizontal">
                    <fieldset>
                        <legend>
                            Authorise Requisition List
                        </legend>

                        <div class="col-lg-4">
                            <div>
                                <asp:Label ID="lblLIst" runat="server" Text="List By" CssClass="col-lg-3 control-label" ></asp:Label>
                            </div>
                            <div class="col-lg-9">
                                <asp:DropDownList ID="ddlRequisitionList" runat="server" CssClass="form-control" AutoPostBack="True" OnSelectedIndexChanged="ddlRequisitionList_SelectedIndexChanged">
                                    <asp:ListItem>All</asp:ListItem>
                                    <asp:ListItem Value="Approved">Approved</asp:ListItem>
                                    <asp:ListItem Value="Pending">Pending</asp:ListItem>
                                    <asp:ListItem Value="Reject">Reject</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            </div>

                        <div class="col-lg-11" style="padding-top:20px;">
                        <asp:GridView ID="gvRequisitionList" runat="server" CssClass="table table-striped table-hover" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" EmptyDataText="No Data Found" PageSize="5" OnPageIndexChanging="gvRequisitionList_PageIndexChanging">
                            <Columns>
                                <%--<asp:BoundField HeaderText="RequisitionForm" DataField="ReqID" >
                                <HeaderStyle CssClass="danger" />
                                </asp:BoundField>--%>
                                <asp:BoundField HeaderText="RequestDate" DataField="ReqDate" DataFormatString="{0:dd/MM/yyyy}">
                                <HeaderStyle CssClass="danger" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="RequestedBy" DataField="EmployeeName">
                                <HeaderStyle CssClass="danger" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="ApprovedStatus" DataField="ReqStatus">
                                <HeaderStyle CssClass="danger" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Approved/Rejected Date" DataField="ReqApproveDate" DataFormatString="{0:dd/MM/yyyy}">
                                <HeaderStyle CssClass="danger" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="RequestStatus">
                                    <ItemTemplate>
                                        <asp:Button ID="btnGoRequisitionDetails" runat="server" CssClass="btn btn-primary btn-xs" Text="Details" PostBackUrl='<%# Eval("ReqID","~/Presentation/Department/AuthoriseRequisition_head.aspx?ID={0}") %>'/>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="danger" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle CssClass="danger" />
                        </asp:GridView>
                        </div>

                        </fieldset>
                    </div>
                </div>
            </div>
        </div>
        </div>
        </div>

</asp:Content>
